
/* A Bison parser, made by GNU Bison 2.4.1.  */

/* Skeleton interface for Bison's Yacc-like parsers in C
   
      Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
   Free Software Foundation, Inc.
   
   This program is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
   
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
   
   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */

/* As a special exception, you may create a larger work that contains
   part or all of the Bison parser skeleton and distribute that work
   under terms of your choice, so long as that work isn't itself a
   parser generator using the skeleton or a modified version thereof
   as a parser skeleton.  Alternatively, if you modify or redistribute
   the parser skeleton itself, you may (at your option) remove this
   special exception, which will cause the skeleton and the resulting
   Bison output files to be licensed under the GNU General Public
   License without this special exception.
   
   This special exception was added by the Free Software Foundation in
   version 2.2 of Bison.  */


/* Tokens.  */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
   /* Put the tokens into the symbol table, so that GDB and other debuggers
      know about them.  */
   enum yytokentype {
     SEMICOLON = 258,
     OPENPAR = 259,
     CLOSEPAR = 260,
     SUM = 261,
     SUB = 262,
     MULT = 263,
     DIV = 264,
     ATTRIB = 265,
     WRITESTR = 266,
     WRITEVAR = 267,
     WRITELN = 268,
     READ = 269,
     FOR = 270,
     TO = 271,
     DO = 272,
     END = 273,
     IF = 274,
     THEN = 275,
     ELSE = 276,
     ENDP = 277,
     STRING = 278,
     VALUE = 279,
     VARIABLE = 280,
     WHILE = 281,
     EQUALS = 282,
     OR = 283,
     AND = 284,
     SQRT = 285,
     DOWNTO = 286,
     ENDIF = 287,
     ENDW = 288,
     ENDFOR = 289,
     GEQ = 290,
     LEQ = 291,
     LESS = 292,
     GREATER = 293,
     LOCAL = 294,
     GLOBAL = 295,
     CALL = 296,
     PROC = 297,
     TOKENMAIN = 298,
     IDENTIFIER = 299,
     ENDPROC = 300,
     COMA = 301
   };
#endif
/* Tokens.  */
#define SEMICOLON 258
#define OPENPAR 259
#define CLOSEPAR 260
#define SUM 261
#define SUB 262
#define MULT 263
#define DIV 264
#define ATTRIB 265
#define WRITESTR 266
#define WRITEVAR 267
#define WRITELN 268
#define READ 269
#define FOR 270
#define TO 271
#define DO 272
#define END 273
#define IF 274
#define THEN 275
#define ELSE 276
#define ENDP 277
#define STRING 278
#define VALUE 279
#define VARIABLE 280
#define WHILE 281
#define EQUALS 282
#define OR 283
#define AND 284
#define SQRT 285
#define DOWNTO 286
#define ENDIF 287
#define ENDW 288
#define ENDFOR 289
#define GEQ 290
#define LEQ 291
#define LESS 292
#define GREATER 293
#define LOCAL 294
#define GLOBAL 295
#define CALL 296
#define PROC 297
#define TOKENMAIN 298
#define IDENTIFIER 299
#define ENDPROC 300
#define COMA 301




#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE
{

/* Line 1676 of yacc.c  */
#line 22 "tp2.y"

	char *palavra;
	double num;
	Interpretador *interpretador;
	Comandos *comandos;
	Comando *comando;
	Expressao *exp;
	VariableExp *variable;



/* Line 1676 of yacc.c  */
#line 156 "y.tab.h"
} YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
#endif

extern YYSTYPE yylval;


